#ifndef MF_CSL_FUNCTIONS_H_
#define MF_CSL_FUNCTIONS_H_

#include <stdio.h>
#include <csl_sar.h>


int ADC_init(CSL_SarHandleObj *SarHandle);
int ADC_deInit(CSL_SarHandleObj *SarHandle);
int ADC_read(CSL_SarHandleObj *SarHandle, Uint16 *readBuffer);

int CSL_init();
int CSL_deInit();
int CSL_Open_Channel(CSL_SarHandleObj *SarHandle);
int CSL_Close_Channel(CSL_SarHandleObj *SarHandle);
int CSL_Channel_Init(CSL_SarHandleObj *SarHandle);
int CSL_Channel_Setup(CSL_SarHandleObj *SarHandle, CSL_SarChSetup *param);
int CSL_Set_Channel_Cycling(CSL_SarHandleObj *SarHandle);
int CSL_Set_ADC_Measurement(CSL_SarHandleObj *SarHandle, int *chanNo);
int CSL_Start_Conversion(CSL_SarHandleObj *SarHandle);
int CSL_Stop_Conversion(CSL_SarHandleObj *SarHandle);

#endif /*MF_CSL_FUNCTIONS_H_*/
